Repository navigation
Add the ReactiveScript map and dev hot replacement - #100
Draft
devagrawal09 wants to merge 37 commits into
Draft
devagrawal09 wants to merge 37 commits into
devagrawal09 wants to merge 37 commits into
Conversation
… its line. `e as T` is TypeScript's assertion: erased where the program runs, kept in the projection. A statement-bodied arrow that fails to parse is no longer re-read as a record, which blamed the handler's `let` with JS_LOCAL.
`source open := false` is already a boolean. Inside `{if open}` the read is `true`, and `open := false` was checked against that. The projection keeps the slot's type and checks the write against it.
The projection checks the import against the declaration, so a ref parameter or result is that type and not the accessor the implementation is written with. The compiled import is unchanged.
The read happens when the handler runs, and the branch may no longer hold. Snapshot into a local and narrow that. A check inside the handler still narrows its own snapshot.
…s an error. CSS-2 already scopes a stylesheet to its own view, so Row stayed unstyled with no warning. STYLE_SCOPE names the other component and the fix: its own style, or a class map.
…has none. n++ in a handler was reported as a generic parse error once the statement reading won outright. The expression reading's ASSIGNMENT hint is kept, and JS_LOCAL from re-reading the body as a record is not.
NoteList's stylesheet does not reach Row (CSS-2). .when and td were pruned; they belong on Row.
…eeps the value. `out := s as Status` evaluated to undefined: the oracle's expression walk had no case for `as`. The checker walks through it too, so the read is still the operand.
…rt type. The projection aliases the other declare namespace, not the sibling .ts.
The model marks that region shadowed by the inner one, so the map can draw it.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #99; review only the last 3 commits:
e30e928Add the ReactiveScript map and keyed dev replacement7214d9dRebuild the map page from the split compiler and runtimeddc27bdCheck travel denial against stock SolidWhat and why
Builds on dev keys.
@reactivescript/mapshows the static program and a live view of changes. It includes an RX app for the map page, read-only MCP queries, layout and diffing, travel, and a fake host and conformance suite. The compiler plans keyed hot replacement; the map can observe it without owning it.Travel and map-observed HMR state carry-over require
openViewfrom solidjs/solid#5089. See also solidjs/solid#5198 and theopenViewdiscussion. On stock Solid 2.0, travel reportsunsupported; map-observed HMR reports that keyed replacement is unsupported and falls back to a full reload. Live inspection still works where dev attribution is available. Exact list travel requires the additional view fixes listed in the README.Compatibility
No intended changes to production lowering. The live map and HMR are dev-only. The view and some attribution details depend on experimental Solid APIs and are capability-checked.
Verification
RX_DEV=1runs.S-sf-1also passed in isolation in both modes.SOLID_VIEWRXCset; real-host view tests skippedSOLID_VIEWunsupportedand the app still respondsQuestions for Ryan